package com.sample.mapping;

import java.util.LinkedHashMap;

import javax.persistence.Column;

//rowkey userid+columnno column names are TUUID
public class UserLine<T> extends AbstractMapping<T> {
	
	@Column(name = "generateTimeId")
	private LinkedHashMap<T, T> userData;
	
	public UserLine(){
		userData = new LinkedHashMap<T, T>(50);
	}

	public LinkedHashMap<T, T> getUserData() {
		return userData;
	}

	public void setUserData(LinkedHashMap<T, T> userData) {
		this.userData = userData;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((userData == null) ? 0 : userData.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		UserLine other = (UserLine) obj;
		if (userData == null) {
			if (other.userData != null)
				return false;
		} else if (!(userData.size() == other.userData.size()))
			return false;
		return true;
	}	
	
	
}
